﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RoketPack.IM
{
    public partial class SubscriptionForm : Form
    {
        private Contact m_Contact = null;

        public SubscriptionForm(Contact contact)
        {
            InitializeComponent();

            this.c_UserStatus.Username = contact.Representation;
            this.c_UserStatus.Status = contact.Status;
            this.c_UserStatus.State = contact.State;
        }

        private void c_YesButton_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Yes;
            this.Close();
        }

        private void c_NoButton_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.No;
            this.Close();
        }
    }
}
